﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SelfMadeMillionaire.Core.Entities;
using SelfMadeMillionaire.Core.Repositories;

namespace SelfMadeMillionaire.DAL.Repositories
{
    public class LogRepository : Repository<Log>, ILogRepository
    {
        public LogRepository(IUnitOfWork uow)
			: base(uow)
		{
		}

        //public Log Add(Log entity)
        //{
        //    var dbEntity = new Log();

        //    dbEntity.DateAdded = entity.DateAdded;
        //    dbEntity.EventType = entity.EventType;
        //    dbEntity.EventMessage = entity.EventMessage;
        //    dbEntity.StackTrace = entity.StackTrace;
        //    dbEntity.CurrentUser = entity.CurrentUser;
        //    dbEntity.Path = entity.Path;
        //    dbEntity.QueryString = entity.QueryString;

        //    dbEntity.Browser = entity.Browser;
        //    dbEntity.UserHostAddress = entity.UserHostAddress;
        //    dbEntity.UrlReferrer = entity.UrlReferrer;

        //    dbEntity.Status = entity.Status;

        //    Commit();

        //    return dbEntity;
        //}
    }
}
